#pragma once

#include "Path/Path.h"

class CRuntimeScriptFile
{
public:

    //original file path at compile
    SPath FilePath; 
    
    //index is line number
    //if cant set break point at line, the slot is nullptr
    TVector<std::shared_ptr<CBreakpointSlot>> BreakpointSlots;

    //cant set break point at line
    bool IsLineBreakable(uint32_t InLineIndex) const
    {
        if(InLineIndex>=BreakpointSlots.size())
        {
            return false;
        }
        return BreakpointSlots[InLineIndex] != nullptr;
    }
};